.TH qt_loop_queue_addworker 3 "JUNE 2010" libqthread "libqthread"
.SH NAME
.B qt_loop_queue_addworker
\- adds a worker to an ongoing loop
.SH SYNOPSIS
.B #include <qthread/qloop.h>

.I void
.br
.B qt_loop_queue_addworker
.RI "(qqloop_handle_t *" loop ,
.br
.ti +25
.RI "qthread_shepherd_id_t " shep );
.SH DESCRIPTION
This function adds a shepherd to the list of participating shepherds for a given loop queue. The function returns quickly, as all bookkeeping is then assumed by the original thread that called
.BR qt_loop_queue_run ().
.SH SEE ALSO
.BR qt_loop (3),
.BR qt_loop_balance (3),
.BR qt_loop_queue_create (3),
.BR qt_loop_queue_run (3),
.BR qt_loopaccum_balance (3),
.BR qt_loop_queue_create (3),
.BR qt_loop_queue_addworker (3)
